package com.ch.home.mapper.restDishMapper;

import com.ch.home.bean.DishRecipes;

import java.util.LinkedList;

/**
 * Created by CHEN on 2019/8/28.
 */
public interface DishRecipesMapper {



    /**
     * 查询信息
     * @param dishRecipes
     * @return
     */
    LinkedList<DishRecipes> getDishRecipes(DishRecipes dishRecipes);

    /**
     * 拿到连表查询的有关信息
     * @param dishRecipes
     * @return
     */
    LinkedList<DishRecipes> getDishRecipesAndSource(DishRecipes dishRecipes);

    /**
     * 新增Dish
     * @param dishRecipes
     * @return
     */
    int addDishRecipes(DishRecipes dishRecipes);

    /**
     * 更新Dish
     * @param dishRecipes
     * @return
     */
    int updateDishRecipes(DishRecipes dishRecipes);
}
